<?php echo form_open_multipart('training/addtouchbase',array('class'=>'form-horizontal','id'=>'frm'));?>
    <? echo $formsavetouchbase;?>
    <fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
	    <label class="control-label">Date Touch Base *</label>
	    <div class="controls">
	      <input type="text" name="DateTouchBase" placeholder="date touch base" class="validate[required] datepicker"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Staff Name *</label>
	    <div class="controls">
          <select name="StaffID" class="validate[required]">
                <?php 
                    echo '<option value="">Select...</option>';
                    foreach ($staffname->result() as $row){
                        echo '<option value="'.$row->StaffID.'">'.$row->staffname.'</option>';   
                    }
                ?>
          </select>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Location *</label>
	    <div class="controls">
	      <select name="Location" class="validate[required]">
                <?php 
                    echo '<option value="">Select...</option>';
                    foreach ($location->result() as $row){
                        echo '<option value="'.$row->LocationID.'">'.$row->Location.'</option>';   
                    }
                ?>
          </select>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Course *</label>
	    <div class="controls">
	      <input type="text" name="Course" placeholder="Course" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Duration</label>
	    <div class="controls">
	      <input type="text" name="Duration" placeholder="Duration" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Purpose</label>
	    <div class="controls">
	      <input type="text" name="Purpose" placeholder="Purpose" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Comment</label>
	    <div class="controls">
          <textarea name="Comment" rows="3"></textarea>
	    </div>
  	</div>
    </fieldset>
<?php echo form_close();?>